#方法1
L=['Bart','Lisa','Adam']
for x in L:
    print('hello.'+x+'!')
L=['Bart','Lisa','Adam',]
#方法2
n=0
while n < len(L):
    print('hello.'+L[n]+'!')
    n=n+1